<div class="row">
    <div class="col-md-12 col-sm-12">
        <h3 class="widget-title">Contact From Customer</h3>
        <table width="100%">

            <thead class="border-bottom">
                <tr>
                    <th class="text-center" width='5%'>No</th>
                    <th class="text-left">From</th>
                    <th class="text-left">Tel</th>
                    <th class="text-left">Email</th>
                    <th class="text-center" width='15%'>Actions</th>
                    <th class="text-center" width='15%'>Date</th>
                </tr>
            </thead>

            <tbody>
                <?php if (sizeof($all) != 0) { ?>
                    <?php $i = 1; ?>
                    <?php foreach ($all as $a): ?>                        
                        <tr>
                            <td class="text-center"><?php echo $i ?></td>
                            <td><?php echo $a['CustomerContact']['name'] ?></td>
                            <td><?php echo $a['CustomerContact']['tel'] ?></td>
                            <td><?php echo $a['CustomerContact']['email'] ?></td>
                            <td class="text-center">
                                <?php echo $this->Html->link('<i class="icon-monitor"></i>', '/CustomerContacts/view/' . $a['CustomerContact']['id'], array('escape' => false,'title'=>'View Details')) ?> 
                                &nbsp;&nbsp;|&nbsp;&nbsp;
                                <?php echo $this->Html->link('<i class="icon-remove"></i>', '/CustomerContacts/delete/' . $a['CustomerContact']['id'], array('escape' => false,'title'=>'Delete'), 'Do you want to remove this contact?') ?> 
                            </td>
                            <td class="text-center"><?php echo $a['CustomerContact']['created'] ?></td>
                        </tr>
                        <?php $i++; ?>
                    <?php endforeach; ?> 
                <?php }else { ?>
                        <tr>
                            <td colspan="6">
                                <h5 class="text-center c-red margin-top">Not found request from customer.</h5>
                            </td>
                        </tr>
                <?php } ?>
            </tbody>

        </table>

    </div>
</div>